<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/classes/DBHelper.class.jsp"%>
<%@ include file="/classes/CommonHelper.class.jsp"%>
<%
	String guid = getParameter(request,"guid");
	if(nullOrEmpty(guid)){
		out.print("<script>alert(\"参数错误\");</script>");
		return;
	}
	
	String status = getParameter(request,"status");
	
	String loginId=(String)(session.getAttribute("loginId")==null?"":session.getAttribute("loginId"));
	if(nullOrEmpty(loginId)){
		out.print("<script>alert(\"请登陆后操作！\");</script>");
		return;
	}
	
	String sql = "update APP_MYZJ_HF_INFO set status = ? , user_id = (select user_id from cms_user where login_Id = ?) ,verify_time = sysdate where guid = ?";
	
	int count = executeUpdate(sql,new Object[]{status,loginId,guid});
	
	if(count>0){
		String myzj_id = getParameter(request,"myzj_id");
		%>
		<script type="text/javascript">
			alert("操作成功！");
			//history.go(-1);
			window.location.href = 'myzj_verify.jsp?guid=<%=myzj_id%>&r=<%=new Date().getTime()%>';
		</script>
		<%
	}else{
		%>
		<script type="text/javascript">
			alert("操作失败！");
			history.go(-1);
		</script>
		<%
	}
	
%>
